<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ include file="/includes/taglibs.jsp" %>
<html>
<head>
<title>Welcome</title>
<%@ include file="/includes/meta.jsp" %>
</head>
<body>
<table>
  <tr>
    <td colspan="3">
    	${abash.content}<br>
    	<c:if test="${not empty abash.images}">
    		<c:forEach items="${abash.images}"  var="imageId">
    			<img src="${ctx}/abash/images/${imageId}" style="width:20%">
    		</c:forEach>
    	</c:if> &nbsp; <a href=${ctx}/abash>返回</a>
    </td>
  </tr>
  <c:forEach items="${replies}" var="reply" varStatus="status">
  <tr>
  	 <td width="10%">
  	 	${status.index+1}
  	 </td>
  	 <td width="15%">
  	 	${users[reply.replierId].realName}
  	 </td>
  	 <td>
  	 	&nbsp;${reply.content}
  	 </td>
  </tr>
  <tr>
  	<td colspan="3" align="right">
  		<fmt:formatDate value="${reply.replyDate}" pattern="MM-dd HH:mm"/>
  	</td>
  </tr>
  </c:forEach>
  <!-- 提交回复 -->
  <tr>
  	<td colspan="3">
  		<form action="${ctx}/abash/reply/save" method="post">
  			<input type="hidden" name="postId" value="${abash.id}">
  			<input type="hidden" name="replierId" value="${user.id}">
  			<textarea name="content" rows="3" cols="30"></textarea><br>
  			<input type="submit">
  		</form>
  	</td>
  </tr>
</table>

</body> 
</html>  